//
// Created by Administrator on 2024/8/2.
//

#include "jtt809_0x120c.h"

#include "../../msgpack/MessagePackWriter.h"
#include "../../msgpack/messagepack_reader.h"

namespace protocol {
    void JTT809_0x120C::serialize(MessagePackWriter &writer) {
        JTT809SubBody::serialize(writer);
        writer.writeString(driverName);
        writer.writeString(driverId);
        writer.writeString(licence);
        writer.writeString(orgName);
        writer.writeTime(validDate);
    }

    void JTT809_0x120C::deserialize(MessagePackReader &reader) {
        JTT809SubBody::deserialize(reader);
        reader.readString(driverName);
        reader.readString(driverId);
        reader.readString(licence);
        reader.readString(orgName);
        reader.readTime(validDate);
    }
} // jtt809